package com.aaa.service.impl;

import com.aaa.dao.AuthorMapper;
import com.aaa.entity.Author;
import com.aaa.service.AuthorServiceDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AuthorServiceImpl implements AuthorServiceDao {
    @Resource
    AuthorMapper authorMapper;

    @Override
    public List<Author> find() {
        return authorMapper.find();
    }

    @Override
    public int add(Author author) {
        return authorMapper.add(author);
    }

    @Override
    public int update(Author author) {
        return authorMapper.update(author);
    }

    @Override
    public int delete(Integer id) {
        return authorMapper.delete(id);
    }

    @Override
    public List<Author> findpage(Integer pageSize, Integer pageNum) {
        return authorMapper.findpage(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return authorMapper.findcount();
    }
}
